/**
 * Created by xie on 2018/3/13.
 */
angular.module('module.personalcenter')
    .controller('SetController', SetController);

SetController.$inject = ['$scope','$state','$cookies','$rootScope'];

function SetController($scope, $state,$cookies, $rootScope) {
    var vm = this;

    vm.logout=logout;
    function logout(){

     if(confirm("是否退出登录?")) {
         $cookies.remove("userInfo");
         $state.go("mainpage");
     }
        else
     return;
    }

}